package drds.binlog.protocol.entry_protocol_proto;

/**
 * <pre>
 * ***************************************************************
 * message model
 * 如果要在Enum中新增类型，确保以前的类型的下标值不变.
 * **************************************************************
 * </pre>
 * <p>
 * Protobuf type {@code com.alibaba.otter.canal.protocol.Entry}
 */
public final class Entry extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.Entry)
        EntryOrBuilder
{
    public static final int HEADER_FIELD_NUMBER = 1;
    public static final int ENTRYTYPE_FIELD_NUMBER = 2;
    public static final int STOREVALUE_FIELD_NUMBER = 3;
    private static final long serialVersionUID = 0L;
    // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Entry)
    private static final Entry DEFAULT_INSTANCE;
    private static final com.google.protobuf.Parser<Entry>
            PARSER = new com.google.protobuf.AbstractParser<Entry>()
    {
        @Override
        public Entry parsePartialFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException
        {
            return new Entry(input, extensionRegistry);
        }
    };

    static
    {
        DEFAULT_INSTANCE = new Entry();
    }

    private int entryTypePresentCase_ = 0;
    private Object entryTypePresent_;
    private Header header_;

    ;
    private com.google.protobuf.ByteString storeValue_;
    private byte memoizedIsInitialized = -1;

    // Use Entry.newBuilder() to construct.
    private Entry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
    {
        super(builder);
    }

    private Entry()
    {
        storeValue_ = com.google.protobuf.ByteString.EMPTY;
    }

    private Entry(
            com.google.protobuf.CodedInputStream codedInputStream,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        this();
        if (extensionRegistry == null)
        {
            throw new NullPointerException();
        }
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
                com.google.protobuf.UnknownFieldSet.newBuilder();
        try
        {
            boolean done = false;
            while (!done)
            {
                int tag = codedInputStream.readTag();
                switch (tag)
                {
                    case 0:
                        done = true;
                        break;
                    case 10:
                    {
                        Header.Builder subBuilder = null;
                        if (header_ != null)
                        {
                            subBuilder = header_.toBuilder();
                        }
                        header_ = codedInputStream.readMessage(Header.parser(), extensionRegistry);
                        if (subBuilder != null)
                        {
                            subBuilder.mergeFrom(header_);
                            header_ = subBuilder.buildPartial();
                        }

                        break;
                    }
                    case 16:
                    {
                        int rawValue = codedInputStream.readEnum();
                        entryTypePresentCase_ = 2;
                        entryTypePresent_ = rawValue;
                        break;
                    }
                    case 26:
                    {

                        storeValue_ = codedInputStream.readBytes();
                        break;
                    }
                    default:
                    {
                        if (!parseUnknownFieldProto3(
                                codedInputStream, unknownFields, extensionRegistry, tag))
                        {
                            done = true;
                        }
                        break;
                    }
                }
            }
        } catch (com.google.protobuf.InvalidProtocolBufferException e)
        {
            throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e)
        {
            throw new com.google.protobuf.InvalidProtocolBufferException(
                    e).setUnfinishedMessage(this);
        } finally
        {
            this.unknownFields = unknownFields.build();
            makeExtensionsImmutable();
        }
    }

    public static final com.google.protobuf.Descriptors.Descriptor
    getDescriptor()
    {
        return BinlogEntry.protocol_Entry_descriptor;
    }

    public static Entry parseFrom(
            java.nio.ByteBuffer data)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data);
    }

    public static Entry parseFrom(
            java.nio.ByteBuffer data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static Entry parseFrom(
            com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data);
    }

    public static Entry parseFrom(
            com.google.protobuf.ByteString data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static Entry parseFrom(byte[] data)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data);
    }

    public static Entry parseFrom(
            byte[] data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static Entry parseFrom(java.io.InputStream input)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseWithIOException(PARSER, input);
    }

    public static Entry parseFrom(
            java.io.InputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static Entry parseDelimitedFrom(java.io.InputStream input)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseDelimitedWithIOException(PARSER, input);
    }

    public static Entry parseDelimitedFrom(
            java.io.InputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }

    public static Entry parseFrom(
            com.google.protobuf.CodedInputStream input)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseWithIOException(PARSER, input);
    }

    public static Entry parseFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static Builder newBuilder()
    {
        return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(Entry prototype)
    {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    public static Entry getDefaultInstance()
    {
        return DEFAULT_INSTANCE;
    }

    public static com.google.protobuf.Parser<Entry> parser()
    {
        return PARSER;
    }

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields()
    {
        return this.unknownFields;
    }

    @Override
    protected FieldAccessorTable
    internalGetFieldAccessorTable()
    {
        return BinlogEntry.protocol_Entry_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                        Entry.class, Builder.class);
    }

    public EntryTypePresentCase
    getEntryTypePresentCase()
    {
        return EntryTypePresentCase.forNumber(
                entryTypePresentCase_);
    }

    /**
     * <pre>
     * *协议头部信息*
     * </pre>
     * <p>
     * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
     */
    public boolean hasHeader()
    {
        return header_ != null;
    }

    /**
     * <pre>
     * *协议头部信息*
     * </pre>
     * <p>
     * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
     */
    public Header getHeader()
    {
        return header_ == null ? Header.getDefaultInstance() : header_;
    }

    /**
     * <pre>
     * *协议头部信息*
     * </pre>
     * <p>
     * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
     */
    public HeaderOrBuilder getHeaderOrBuilder()
    {
        return getHeader();
    }

    /**
     * <code>.com.alibaba.otter.canal.protocol.EntryType entryType = 2;</code>
     */
    public int getEntryTypeValue()
    {
        if (entryTypePresentCase_ == 2)
        {
            return (Integer) entryTypePresent_;
        }
        return EntryType.ROWDATA_VALUE;
    }

    /**
     * <code>.com.alibaba.otter.canal.protocol.EntryType entryType = 2;</code>
     */
    public EntryType getEntryType()
    {
        if (entryTypePresentCase_ == 2)
        {
            @SuppressWarnings("deprecation")
            EntryType result = EntryType.valueOf(
                    (Integer) entryTypePresent_);
            return result == null ? EntryType.UNRECOGNIZED : result;
        }
        return EntryType.TRANSACTIONBEGIN;
    }

    /**
     * <pre>
     * *传输的二进制数组*
     * </pre>
     * <p>
     * <code>bytes storeValue = 3;</code>
     */
    public com.google.protobuf.ByteString getStoreValue()
    {
        return storeValue_;
    }

    @Override
    public final boolean isInitialized()
    {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized == 1) return true;
        if (isInitialized == 0) return false;

        memoizedIsInitialized = 1;
        return true;
    }

    @Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
            throws java.io.IOException
    {
        if (header_ != null)
        {
            output.writeMessage(1, getHeader());
        }
        if (entryTypePresentCase_ == 2)
        {
            output.writeEnum(2, ((Integer) entryTypePresent_));
        }
        if (!storeValue_.isEmpty())
        {
            output.writeBytes(3, storeValue_);
        }
        unknownFields.writeTo(output);
    }

    @Override
    public int getSerializedSize()
    {
        int size = memoizedSize;
        if (size != -1) return size;

        size = 0;
        if (header_ != null)
        {
            size += com.google.protobuf.CodedOutputStream
                    .computeMessageSize(1, getHeader());
        }
        if (entryTypePresentCase_ == 2)
        {
            size += com.google.protobuf.CodedOutputStream
                    .computeEnumSize(2, ((Integer) entryTypePresent_));
        }
        if (!storeValue_.isEmpty())
        {
            size += com.google.protobuf.CodedOutputStream
                    .computeBytesSize(3, storeValue_);
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
    }

    @Override
    public boolean equals(final Object obj)
    {
        if (obj == this)
        {
            return true;
        }
        if (!(obj instanceof Entry))
        {
            return super.equals(obj);
        }
        Entry other = (Entry) obj;

        boolean result = true;
        result = result && (hasHeader() == other.hasHeader());
        if (hasHeader())
        {
            result = result && getHeader()
                    .equals(other.getHeader());
        }
        result = result && getStoreValue()
                .equals(other.getStoreValue());
        result = result && getEntryTypePresentCase().equals(
                other.getEntryTypePresentCase());
        if (!result) return false;
        switch (entryTypePresentCase_)
        {
            case 2:
                result = result && getEntryTypeValue()
                        == other.getEntryTypeValue();
                break;
            case 0:
            default:
        }
        result = result && unknownFields.equals(other.unknownFields);
        return result;
    }

    @Override
    public int hashCode()
    {
        if (memoizedHashCode != 0)
        {
            return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        if (hasHeader())
        {
            hash = (37 * hash) + HEADER_FIELD_NUMBER;
            hash = (53 * hash) + getHeader().hashCode();
        }
        hash = (37 * hash) + STOREVALUE_FIELD_NUMBER;
        hash = (53 * hash) + getStoreValue().hashCode();
        switch (entryTypePresentCase_)
        {
            case 2:
                hash = (37 * hash) + ENTRYTYPE_FIELD_NUMBER;
                hash = (53 * hash) + getEntryTypeValue();
                break;
            case 0:
            default:
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
    }

    @Override
    public Builder newBuilderForType()
    {
        return newBuilder();
    }

    @Override
    public Builder toBuilder()
    {
        return this == DEFAULT_INSTANCE
                ? new Builder() : new Builder().mergeFrom(this);
    }

    @Override
    protected Builder newBuilderForType(
            BuilderParent parent)
    {
        Builder builder = new Builder(parent);
        return builder;
    }

    @Override
    public com.google.protobuf.Parser<Entry> getParserForType()
    {
        return PARSER;
    }

    @Override
    public Entry getDefaultInstanceForType()
    {
        return DEFAULT_INSTANCE;
    }

    public enum EntryTypePresentCase
            implements com.google.protobuf.Internal.EnumLite
    {
        ENTRYTYPE(2),
        ENTRYTYPEPRESENT_NOT_SET(0);
        private final int value;

        private EntryTypePresentCase(int value)
        {
            this.value = value;
        }

        /**
         * @deprecated Use {@link #forNumber(int)} instead.
         */
        @Deprecated
        public static EntryTypePresentCase valueOf(int value)
        {
            return forNumber(value);
        }

        public static EntryTypePresentCase forNumber(int value)
        {
            switch (value)
            {
                case 2:
                    return ENTRYTYPE;
                case 0:
                    return ENTRYTYPEPRESENT_NOT_SET;
                default:
                    return null;
            }
        }

        public int getNumber()
        {
            return this.value;
        }
    }

    /**
     * <pre>
     * ***************************************************************
     * message model
     * 如果要在Enum中新增类型，确保以前的类型的下标值不变.
     * **************************************************************
     * </pre>
     * <p>
     * Protobuf type {@code com.alibaba.otter.canal.protocol.Entry}
     */
    public static final class Builder extends
            com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
            // @@protoc_insertion_point(builder_implements:com.alibaba.otter.canal.protocol.Entry)
            EntryOrBuilder
    {
        private int entryTypePresentCase_ = 0;
        private Object entryTypePresent_;
        private Header header_ = null;
        private com.google.protobuf.SingleFieldBuilderV3<
                Header, Header.Builder, HeaderOrBuilder> headerBuilder_;
        private com.google.protobuf.ByteString storeValue_ = com.google.protobuf.ByteString.EMPTY;

        // Construct using BinlogEntry.Entry.newBuilder()
        private Builder()
        {
            maybeForceBuilderInitialization();
        }

        private Builder(
                BuilderParent parent)
        {
            super(parent);
            maybeForceBuilderInitialization();
        }

        public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor()
        {
            return BinlogEntry.protocol_Entry_descriptor;
        }

        @Override
        protected FieldAccessorTable
        internalGetFieldAccessorTable()
        {
            return BinlogEntry.protocol_Entry_fieldAccessorTable
                    .ensureFieldAccessorsInitialized(
                            Entry.class, Builder.class);
        }

        private void maybeForceBuilderInitialization()
        {
            if (com.google.protobuf.GeneratedMessageV3
                    .alwaysUseFieldBuilders)
            {
            }
        }

        @Override
        public Builder clear()
        {
            super.clear();
            if (headerBuilder_ == null)
            {
                header_ = null;
            } else
            {
                header_ = null;
                headerBuilder_ = null;
            }
            storeValue_ = com.google.protobuf.ByteString.EMPTY;

            entryTypePresentCase_ = 0;
            entryTypePresent_ = null;
            return this;
        }

        @Override
        public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType()
        {
            return BinlogEntry.protocol_Entry_descriptor;
        }

        @Override
        public Entry getDefaultInstanceForType()
        {
            return Entry.getDefaultInstance();
        }

        @Override
        public Entry build()
        {
            Entry result = buildPartial();
            if (!result.isInitialized())
            {
                throw newUninitializedMessageException(result);
            }
            return result;
        }

        @Override
        public Entry buildPartial()
        {
            Entry result = new Entry(this);
            if (headerBuilder_ == null)
            {
                result.header_ = header_;
            } else
            {
                result.header_ = headerBuilder_.build();
            }
            if (entryTypePresentCase_ == 2)
            {
                result.entryTypePresent_ = entryTypePresent_;
            }
            result.storeValue_ = storeValue_;
            result.entryTypePresentCase_ = entryTypePresentCase_;
            onBuilt();
            return result;
        }

        @Override
        public Builder clone()
        {
            return (Builder) super.clone();
        }

        @Override
        public Builder setField(
                com.google.protobuf.Descriptors.FieldDescriptor field,
                Object value)
        {
            return (Builder) super.setField(field, value);
        }

        @Override
        public Builder clearField(
                com.google.protobuf.Descriptors.FieldDescriptor field)
        {
            return (Builder) super.clearField(field);
        }

        @Override
        public Builder clearOneof(
                com.google.protobuf.Descriptors.OneofDescriptor oneof)
        {
            return (Builder) super.clearOneof(oneof);
        }

        @Override
        public Builder setRepeatedField(
                com.google.protobuf.Descriptors.FieldDescriptor field,
                int index, Object value)
        {
            return (Builder) super.setRepeatedField(field, index, value);
        }

        @Override
        public Builder addRepeatedField(
                com.google.protobuf.Descriptors.FieldDescriptor field,
                Object value)
        {
            return (Builder) super.addRepeatedField(field, value);
        }

        @Override
        public Builder mergeFrom(com.google.protobuf.Message other)
        {
            if (other instanceof Entry)
            {
                return mergeFrom((Entry) other);
            } else
            {
                super.mergeFrom(other);
                return this;
            }
        }

        public Builder mergeFrom(Entry other)
        {
            if (other == Entry.getDefaultInstance()) return this;
            if (other.hasHeader())
            {
                mergeHeader(other.getHeader());
            }
            if (other.getStoreValue() != com.google.protobuf.ByteString.EMPTY)
            {
                setStoreValue(other.getStoreValue());
            }
            switch (other.getEntryTypePresentCase())
            {
                case ENTRYTYPE:
                {
                    setEntryTypeValue(other.getEntryTypeValue());
                    break;
                }
                case ENTRYTYPEPRESENT_NOT_SET:
                {
                    break;
                }
            }
            this.mergeUnknownFields(other.unknownFields);
            onChanged();
            return this;
        }

        @Override
        public final boolean isInitialized()
        {
            return true;
        }

        @Override
        public Builder mergeFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException
        {
            Entry parsedMessage = null;
            try
            {
                parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e)
            {
                parsedMessage = (Entry) e.getUnfinishedMessage();
                throw e.unwrapIOException();
            } finally
            {
                if (parsedMessage != null)
                {
                    mergeFrom(parsedMessage);
                }
            }
            return this;
        }

        public EntryTypePresentCase
        getEntryTypePresentCase()
        {
            return EntryTypePresentCase.forNumber(
                    entryTypePresentCase_);
        }

        public Builder clearEntryTypePresent()
        {
            entryTypePresentCase_ = 0;
            entryTypePresent_ = null;
            onChanged();
            return this;
        }

        /**
         * <pre>
         * *协议头部信息*
         * </pre>
         * <p>
         * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
         */
        public boolean hasHeader()
        {
            return headerBuilder_ != null || header_ != null;
        }

        /**
         * <pre>
         * *协议头部信息*
         * </pre>
         * <p>
         * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
         */
        public Header getHeader()
        {
            if (headerBuilder_ == null)
            {
                return header_ == null ? Header.getDefaultInstance() : header_;
            } else
            {
                return headerBuilder_.getMessage();
            }
        }

        /**
         * <pre>
         * *协议头部信息*
         * </pre>
         * <p>
         * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
         */
        public Builder setHeader(
                Header.Builder builderForValue)
        {
            if (headerBuilder_ == null)
            {
                header_ = builderForValue.build();
                onChanged();
            } else
            {
                headerBuilder_.setMessage(builderForValue.build());
            }

            return this;
        }

        /**
         * <pre>
         * *协议头部信息*
         * </pre>
         * <p>
         * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
         */
        public Builder setHeader(Header value)
        {
            if (headerBuilder_ == null)
            {
                if (value == null)
                {
                    throw new NullPointerException();
                }
                header_ = value;
                onChanged();
            } else
            {
                headerBuilder_.setMessage(value);
            }

            return this;
        }

        /**
         * <pre>
         * *协议头部信息*
         * </pre>
         * <p>
         * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
         */
        public Builder mergeHeader(Header value)
        {
            if (headerBuilder_ == null)
            {
                if (header_ != null)
                {
                    header_ =
                            Header.newBuilder(header_).mergeFrom(value).buildPartial();
                } else
                {
                    header_ = value;
                }
                onChanged();
            } else
            {
                headerBuilder_.mergeFrom(value);
            }

            return this;
        }

        /**
         * <pre>
         * *协议头部信息*
         * </pre>
         * <p>
         * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
         */
        public Builder clearHeader()
        {
            if (headerBuilder_ == null)
            {
                header_ = null;
                onChanged();
            } else
            {
                header_ = null;
                headerBuilder_ = null;
            }

            return this;
        }

        /**
         * <pre>
         * *协议头部信息*
         * </pre>
         * <p>
         * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
         */
        public Header.Builder getHeaderBuilder()
        {

            onChanged();
            return getHeaderFieldBuilder().getBuilder();
        }

        /**
         * <pre>
         * *协议头部信息*
         * </pre>
         * <p>
         * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
         */
        public HeaderOrBuilder getHeaderOrBuilder()
        {
            if (headerBuilder_ != null)
            {
                return headerBuilder_.getMessageOrBuilder();
            } else
            {
                return header_ == null ?
                        Header.getDefaultInstance() : header_;
            }
        }

        /**
         * <pre>
         * *协议头部信息*
         * </pre>
         * <p>
         * <code>.com.alibaba.otter.canal.protocol.Header header = 1;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<
                Header, Header.Builder, HeaderOrBuilder>
        getHeaderFieldBuilder()
        {
            if (headerBuilder_ == null)
            {
                headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                        Header, Header.Builder, HeaderOrBuilder>(
                        getHeader(),
                        getParentForChildren(),
                        isClean());
                header_ = null;
            }
            return headerBuilder_;
        }

        /**
         * <code>.com.alibaba.otter.canal.protocol.EntryType entryType = 2;</code>
         */
        public int getEntryTypeValue()
        {
            if (entryTypePresentCase_ == 2)
            {
                return ((Integer) entryTypePresent_).intValue();
            }
            return 0;
        }

        /**
         * <code>.com.alibaba.otter.canal.protocol.EntryType entryType = 2;</code>
         */
        public Builder setEntryTypeValue(int value)
        {
            entryTypePresentCase_ = 2;
            entryTypePresent_ = value;
            onChanged();
            return this;
        }

        /**
         * <code>.com.alibaba.otter.canal.protocol.EntryType entryType = 2;</code>
         */
        public EntryType getEntryType()
        {
            if (entryTypePresentCase_ == 2)
            {
                @SuppressWarnings("deprecation")
                EntryType result = EntryType.valueOf(
                        (Integer) entryTypePresent_);
                return result == null ? EntryType.UNRECOGNIZED : result;
            }
            return EntryType.TRANSACTIONBEGIN;
        }

        /**
         * <code>.com.alibaba.otter.canal.protocol.EntryType entryType = 2;</code>
         */
        public Builder setEntryType(EntryType value)
        {
            if (value == null)
            {
                throw new NullPointerException();
            }
            entryTypePresentCase_ = 2;
            entryTypePresent_ = value.getNumber();
            onChanged();
            return this;
        }

        /**
         * <code>.com.alibaba.otter.canal.protocol.EntryType entryType = 2;</code>
         */
        public Builder clearEntryType()
        {
            if (entryTypePresentCase_ == 2)
            {
                entryTypePresentCase_ = 0;
                entryTypePresent_ = null;
                onChanged();
            }
            return this;
        }

        /**
         * <pre>
         * *传输的二进制数组*
         * </pre>
         * <p>
         * <code>bytes storeValue = 3;</code>
         */
        public com.google.protobuf.ByteString getStoreValue()
        {
            return storeValue_;
        }

        /**
         * <pre>
         * *传输的二进制数组*
         * </pre>
         * <p>
         * <code>bytes storeValue = 3;</code>
         */
        public Builder setStoreValue(com.google.protobuf.ByteString value)
        {
            if (value == null)
            {
                throw new NullPointerException();
            }

            storeValue_ = value;
            onChanged();
            return this;
        }

        /**
         * <pre>
         * *传输的二进制数组*
         * </pre>
         * <p>
         * <code>bytes storeValue = 3;</code>
         */
        public Builder clearStoreValue()
        {

            storeValue_ = getDefaultInstance().getStoreValue();
            onChanged();
            return this;
        }

        @Override
        public final Builder setUnknownFields(
                final com.google.protobuf.UnknownFieldSet unknownFields)
        {
            return super.setUnknownFieldsProto3(unknownFields);
        }

        @Override
        public final Builder mergeUnknownFields(
                final com.google.protobuf.UnknownFieldSet unknownFields)
        {
            return super.mergeUnknownFields(unknownFields);
        }


        // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.Entry)
    }

}
